Determine the bound rect of the PopUpList. Uses the frame of the button or the popUpList, whichever is wider ( make sure it is wide enough to display the whole thing, but not any shorter than the button is )
*/
{
NXRect popupFrame;
[popUp getFrame:&popupFrame];
[cover getBounds:rect];
if ( NX_WIDTH(rect) < NX_WIDTH(&popupFrame)-1 )
rect->size.width = NX_WIDTH(&popupFrame)-1;
return ( self );
}
- setTitle:(const char *)aString
/*
Receives messages from the popUp list directed for the cover. The object that sends the popUp: mesasge to the popUp must respond to this message in return.
*/
{
[cover setTitle:aString];
return ( self );
}
- convertPoint:(NXPoint *)aPoint toView:aView
/*
Forward to the cover -- this would normally be sent directly to the cover button from the popUp.